/**
 * 
 */
package com.miolr.module.core.api;

import org.codehaus.jackson.Version;
import org.codehaus.jackson.map.Module;

/**
 * @author iday
 *
 */
public class HibernateModule extends Module {

	/* (non-Javadoc)
	 * @see org.codehaus.jackson.map.Module#getModuleName()
	 */
	@Override
	public String getModuleName() {
		return "miolr-hibernate-jackson-module";
	}

	/* (non-Javadoc)
	 * @see org.codehaus.jackson.map.Module#version()
	 */
	@Override
	public Version version() {
		return new Version(1, 0, 0, null);
	}

	/* (non-Javadoc)
	 * @see org.codehaus.jackson.map.Module#setupModule(org.codehaus.jackson.map.Module.SetupContext)
	 */
	@Override
	public void setupModule(SetupContext context) {
		context.appendAnnotationIntrospector(new HibernateAnnotationIntrospector());
		context.addSerializers(new HibernateSerializers());
	}

}
